package com.danbay.framework.protocol.command.codec;


import com.danbay.framework.exception.MessageCodeException;

import java.lang.reflect.Type;

/**
 * 命令数据解码接口:将字符串解码成对象
 * @author sjg
 *
 */
public interface ICmdDataDecoder {

	/**
	 * 将字符串解码成对象
	 * @param data
	 * @param dest 目标对象类
	 * @return
	 */
	public <T> T decode(String data, Type dest) throws MessageCodeException;
}
